-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename the "AMOUNT" argument for jj prev
and jj next
to OFFSET
#3443
Conversation
Offset is a more descriptive noun for this argument. This commit also tweaks the help message for the argument. This isn't an option/flag, so this change should be transparent to users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Did you actually want my review? Because this surely could be missunderstood. |
Sorry, I should have waited longer to submit this. If you have concerns we can always roll back or change it again. What do you think are the issues with "offset"? |
Offsets usually are 0 based, while the movement ( |
The movement is zero-based relative something, isn't it? I think what it's relative to depends on where I looked at the revset docs and I don't think "offset" is incompatible. Maybe I'm missing something?
So an offset of 1 is one generation back from the current generation. And an offset of 0 is the current generation. Right? |
While the name is fine, a offset of one implies the behavior you describe as a bug, so it does not align with the default argument. |
I have been successfully convinced that the current behavior is not a bug and that I had a misunderstanding about what the movement is relative to (it appears to be relative to |
It is ok. |
Offset is a more descriptive noun for this argument. This commit also tweaks the help message for the argument.
This isn't an option/flag, so this change should be transparent to users.